<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui">

<ui:composition template="/template/_mensuresTemplate.xhtml">

	<f:loadBundle basename="br.com.mensures.properties.mensures" var="msg" />
	<ui:define name="content">
	
		<!-- Ajax loading bar -->
		<ui:include src="loading/loading.xhtml" />

		<h:form id="formLogin">
			<br></br>
			<br></br>
			<p:panel id="panelLogin" header="#{msg.infoUsuario}"
				style="width:290px; height: 125px">


				<div style="float: left; width: 78px; height: 88px;">
					<h:graphicImage value="/resources/images/login.png" />
				</div>
				<div style="float: right;">

					<h:panelGrid columns="2">
						<h:outputLabel for="login" value="#{msg.usuario}" />
						<p:inputText id="login" required="true" value="#{loginMBean.userVo.usuario}"
							requiredMessage="#{msg.emailRequired}"  />
						<h:outputLabel for="password" value="#{msg.senha}" />
						<p:password id="password" required="true" value="#{loginMBean.userVo.senha}"
							requiredMessage="#{msg.senhaRequired}" />
						

					</h:panelGrid>
					<p:commandButton value="Entrar" update="formLogin" action="#{loginMBean.efetuaLogin}" />
				</div>
			</p:panel>
			<h:panelGrid width="390px">
				<p:messages />
			</h:panelGrid>
		</h:form>
		<br></br>
		<br></br>
	</ui:define>

</ui:composition>

</html>
